import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { WebMsgLayoutComponent } from './_layout/layout.component';
import { MsgMetaComponent } from './meta/msg-meta.component';
import { MsgSenderComponent } from './tool/msg-sender.component';

const routes: Routes = [
  {
    path: '',
    component: WebMsgLayoutComponent,
    children: [
      { path: 'meta', component: MsgMetaComponent },
      { path: 'sender', component: MsgSenderComponent },
    ],
  },
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule],
})
export class WebMsgRoutingModule {}
